# -*- coding: utf-8; mode: snippet -*-
# name: logrank test between groups from lifelines
# key: logran_test.group@lifeline
# key: multivariate_logrank_test@lifeline
# contributor: Shuguang Sun
# --
# from lifelines.statistics import multivariate_logrank_test

${1:result} = logrank_test(event_durations=${1:dtin}[\"${2:duration}\"],
    groups=$1[\"${3:groups}\"],
    event_observed=$1["${4:event}"],
    weightings=${5:$$(yas-choose-value '("None" "\\\"wilcoxox\\\"" "\\\"tarone-ware\\\"" "\\\"peto\\\"" "\\\"fleming-harrington\\\""))})